import org.junit.Test;

import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.UUID;

/**
 * 简述
 *
 * @author brant
 * @since 2024-04-03
 */
public class PwdTest {

    @Test
    public void test() {
        String uuid = UUID.randomUUID().toString();
        System.out.println(Base64.getEncoder().encodeToString(uuid.getBytes(StandardCharsets.UTF_8)));
    }

}
